package com.zhaotianhao.serviceorder.api;

import com.zhaotianhao.serviceorder.common.JsonResult;
import com.zhaotianhao.serviceorder.dto.OrderDto;
import com.zhaotianhao.serviceorder.vo.CartVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author Z-7
 * @Date 2022/4/30
 */
@FeignClient(name = "service-cart",path = "/cart")
public interface CartApi {
    @GetMapping("getOrderCart")
    CartVo getOrderCart(@RequestParam Long userId);

    @PostMapping("deleteBySkuIds")
    JsonResult deleteBySkuIds(@RequestBody OrderDto orderDto);
}
